package com.resume.utils;

import java.io.File;

public class FileUtil {

    public static String getFileSuffix(String file) {
        String fileName = new File(file).getName();
        int index = fileName.lastIndexOf(".");
        if (index != -1 && index < fileName.length() - 1) {
            return fileName.substring(index + 1);
        }
        return null;
    }

}